package cn.holy.app.sztxc.main;

import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.qmuiteam.qmui.util.QMUIStatusBarHelper;
import com.qmuiteam.qmui.widget.QMUIRadiusImageView;
import com.qmuiteam.qmui.widget.QMUITopBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.holy.app.sztxc.R;
import cn.holy.app.sztxc.activity.base.BaseActivity;

/**
 * Created by xiong on 18-2-23.
 */
@Route(path = "/app/main")
public class MainActivity extends BaseActivity {
    @BindView(R.id.top_bar)
    QMUITopBar topBar;
    @BindView(R.id.avatar)
    QMUIRadiusImageView avatar;
    @BindView(R.id.tv_nickname)
    TextView tvNickname;
    @BindView(R.id.iv_icon_photo)
    ImageView ivIconPhoto;
    @BindView(R.id.tv_photo_title)
    TextView tvPhotoTitle;
    @BindView(R.id.btn_photo)
    LinearLayout btnPhoto;
    @BindView(R.id.iv_icon_action)
    ImageView ivIconAction;
    @BindView(R.id.tv_action_title)
    TextView tvActionTitle;
    @BindView(R.id.btn_action)
    LinearLayout btnAction;
    @BindView(R.id.content)
    LinearLayout content;
    @BindView(R.id.scrollView)
    ScrollView scrollView;

    @Override
    protected void initData() {

    }

    @OnClick(R.id.btn_photo)
    public void navigationRecord(){
        ARouter.getInstance().build("/app/record").navigation();
    }

    @Override
    protected void initView() {
        QMUIStatusBarHelper.translucent(this);
        QMUIStatusBarHelper.setStatusBarDarkMode(this);
        topBar.setTitle(R.string.app_name).setTextColor(ContextCompat.getColor(this, R.color.colorWhite));
        topBar.addLeftImageButton(R.mipmap.ic_close, R.id.action_close).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });



    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.activity_main);
    }


}
